using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Topology
{
    /// <summary>
    /// <para>Set Cluster Tolerance</para>
    /// <para>Sets the cluster tolerance of a topology.</para>
    /// <para>设置拓扑的群集容差。</para>
    /// </summary>    
    [DisplayName("Set Cluster Tolerance")]
    public class SetClusterTolerance : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetClusterTolerance()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_topology">
        /// <para>Input Topology</para>
        /// <para>The topology for which you want to change the cluster tolerance.</para>
        /// <para>要更改其聚类容差的拓扑。</para>
        /// </param>
        /// <param name="_cluster_tolerance">
        /// <para>Cluster Tolerance</para>
        /// <para>The value to be set as the cluster tolerance property of the selected topology. If you enter a value of zero, the default or minimum cluster tolerance will be applied to the topology.</para>
        /// <para>要设置为所选拓扑的聚类容差属性的值。如果输入值为零，则默认或最小群集容差将应用于拓扑。</para>
        /// </param>
        public SetClusterTolerance(object _in_topology, double? _cluster_tolerance)
        {
            this._in_topology = _in_topology;
            this._cluster_tolerance = _cluster_tolerance;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Set Cluster Tolerance";

        public override string CallName => "management.SetClusterTolerance";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_topology, _cluster_tolerance, _out_topology];

        /// <summary>
        /// <para>Input Topology</para>
        /// <para>The topology for which you want to change the cluster tolerance.</para>
        /// <para>要更改其聚类容差的拓扑。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Topology")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_topology { get; set; }


        /// <summary>
        /// <para>Cluster Tolerance</para>
        /// <para>The value to be set as the cluster tolerance property of the selected topology. If you enter a value of zero, the default or minimum cluster tolerance will be applied to the topology.</para>
        /// <para>要设置为所选拓扑的聚类容差属性的值。如果输入值为零，则默认或最小群集容差将应用于拓扑。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Cluster Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public double? _cluster_tolerance { get; set; }


        /// <summary>
        /// <para>Updated Input Topology</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Topology")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_topology { get; set; }


        public SetClusterTolerance SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}